<?php

/**
 * 应用设置
 * 
 * @author ShuangYa
 * @package TBSign
 * @category Config
 * @link http://www.sylingd.com/
 */

return [
	'appName' => 'TiebaVPSSign',
	'appNamespace' => 'tbsign',
	//调试模式
	'debug' => TRUE,
	//App根目录，相对于framework目录
	'dir' => '../application/',
	//编码
	'charset' => 'utf-8',
	//默认语言
	'language' => 'zh-CN',
	'cookieKey' => 'test',
	'securityKey' => 'test',
	'csrf' => FALSE,
	'rewrite' => TRUE,
	'rewriteExt' => 'esp',
	'rewriteRule' => [
	],
	//Controller列表
	'controller' => [
		'login',
		'setting'
	],
	//默认的Router
	'defaultRouter' => 'login/hello',
	//会被Autoload加载的class列表
	'class' => [
	],
	//虚拟路由表
	//例如'user'=>'eu_user'
	'alias' => [
	],
	//console支持
	//格式：['console函数/方法所在文件', '初始化函数（支持格式同call_user_func）']
	'console' => [
		'default' => ['worker.php', 'Worker::init'],
		'sign' => ['sign.php', 'Sign::init'],
	],
	//Cookie相关
	'cookie' => [
		'prefix' => 'sign_',
		'expire' => 7200,
		'path' => '/',
		'domain' => $_SERVER['HTTP_HOST']
	],
	//MySQL支持
	'mysql' => [
		'host' => '127.0.0.1',
		'port' => '3306',
		'user' => 'root',
		'password' => 'root',
		'name' => 'test',
		'prefix' => 'pre_'
	],
	'BaiduOAuth' => [
		'client_id' => '',
		'client_secret' => ''
	]
];